﻿using System;
using System.Collections.Generic;
using System.Text;
using T.FAS.Runtime.Action.SPI;
using T.FAS.Runtime.Base.Entity;
using T.FAS.Runtime.DataAccess.Service;
using T.FAS.Runtime.Metadata.Entity;

namespace T.FAS.Runtime.Action.Service
{
    public class ActionRTPLocalCacheForceHandler
    {
        public static TRecord CDONewInstanceAndInitRecord(string cdoId,TRecord record)
        {
            var result = StateMachineRTPClient.GetInstance().InitRecord(cdoId, record);
            return (result as TCommonResult<TRecord>).Record as TRecord;
        }
    }
}
